package cn.fu.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.fu.core.bean.TestTb;
import cn.fu.core.service.TestTbService;

@Controller
public class TestSpringMVC {
	
	@Autowired
	private TestTbService testTbService;
	@RequestMapping("index.do")
	public String toIndex(){
		List<TestTb> list = testTbService.selectTestTbList();
		for (TestTb testTb : list) {
			System.err.println(testTb);
		}
		return "index";
	}
}
